export const SimpleOptions = [
    {key: 'tid', value: 'tid', text: '订单号'}
    ,{key: 'buyerUserId', value: 'buyerUserId', text: '会员编号'}
    ,{key: 'buyerUserName', value: 'buyerUserName', text: '会员登录名'}
    ,{key: 'consigneeName', value: 'consigneeName', text: '收货人'}
    ,{key: 'consigneeMobile', value: 'consigneeMobile', text: '收货人手机'}
    ,{key: 'logistcNo', value: 'logistcNo', text: '物流单号'}
    ,{key: 'itemName', value: 'itemName', text: '商品名称'}
    ,{key: 'articleNo', value: 'articleNo', text: 'SKU商家编码'}];

export function payTypeOptions(type) {
    let payTypes =  [
        {key: 'all', value: '', text: '全部'}
        ,{key: 'OLP', value: 'OLP', text: '在线支付'}
        // ,{key: 'BTP', value: 'BTP', text: '转账汇款'}
        ,{key: 'OBP', value: 'OBP', text: '余额支付'}
        // ,{key: 'CRP', value: 'CRP', text: '信用支付'}
        ,{key: 'UNP', value: 'UNP', text: '组合支付'}];

    if (type !== 'unpay') {
        payTypes.push(
            {key: 'CAP', value: 'CAP', text: '现金支付'}
            ,{key: 'GRP', value: 'GRP', text: '货到付款'}
        );
    }

    return payTypes;
}

export const shippingMethodOptions = [
    {key: '-1', value: '', text: '全部'}
    ,{key: 'express', value: 'express', text: '快递'}
    ,{key: 'self', value: 'self', text: '上门自提'}];

export const invoiceFlagOptions = [
    {key: '-1', value: '', text: '全部'}
    ,{key: '0', value: '0', text: '不开发票'}
    ,{key: '2', value: '2', text: '未开发票'}
    ,{key: '3', value: '3', text: '已开发票'}];

export const deviceTypeOptions = [
    {key: 'pc', value: 'pc', text: 'PC端'}
    ,{key: 'wechat_mobile', value: 'wechat_mobile', text: '微信端'}
    ,{key: 'WAP+APP', value: 'mobile', text: 'WAP+APP'}
    ,{key: 'admin_pc', value: 'admin_pc', text: '代客下单'}
]